﻿using System.Collections.ObjectModel;

namespace Example
{
    public class Category : NotificationObject
    {
        private string _name;
        private bool _isCategorySelected;

        public Category()
        {
            SubCategories = new ObservableCollection<Category>();
        }


        public string Name
        {
            get { return _name; }
            set
            {
                _name = value;
                OnPropertyChanged();
            }
        }

        public bool IsCategorySelected
        {
            get { return _isCategorySelected; }
            set
            {
                _isCategorySelected = value;
                OnPropertyChanged();
            }
        }



        public ObservableCollection<Category> SubCategories { get; set; }

    }
}